import request from '@/utils/request'

// 查询列表
export function listTask(query) {
  return request({
    url: '/userlocation/task/list',
    method: 'get',
    params: query
  })
}

// 删除
export function delTask(userId) {
  return request({
    url: '/userlocation/task/' + userId,
    method: 'delete'
  })
}
//新增
export function addTask(data) {
  return request({
    url: '/userlocation/task',
    method: 'post',
    data: data
  })
}


//更新
export function updateTask(data) {
  return request({
    url: '/userlocation/task',
    method: 'put',
    data: data
  })
}


// 根据id获取详情
export function detailsInfo(userId) {
  return request({
    url: '/userlocation/task/' + userId,
    method: 'get'
  })
}

// 根据id获取详情
export function detailsuserlocationInfo(userId) {
  return request({
    url: '/userlocation/task/' + userId,
    method: 'get'
  })
}
